-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding support for Scalar Crypto Extension (Bitmanip instructions for Cryptography, Zbkb) #2653
base: master
Are you sure you want to change the base?
Conversation
Great! To solve the Verible format issues, I suggest to use the command reported in CONTRIBUTING.md. |
❌ failed run, report available here. |
First comments:
|
Thanks @JeanRochCoulon . Sure, we will disable it for |
❌ failed run, report available here. |
ae24f11
to
cf404bf
Compare
Currently enabling Zbkb in 2 configs only:
|
❌ failed run, report available here. |
❌ failed run, report available here. |
✔️ successful run, report available here. |
1 similar comment
✔️ successful run, report available here. |
Hi @JeanRochCoulon, can you please approve this? |
Hello @munailwaqar |
✔️ successful run, report available here. |
@JeanRochCoulon Added the relevant arch tests to the testlist but I also had to enable the Zbkb extension in cv64a6_imafdc_sv39_hpdcache config as the CI runs checks for this config too using the same testlist. |
✔️ successful run, report available here. |
Hi @JeanRochCoulon can you please review this again? Thanks. |
Hello @munailwaqar |
@JeanRochCoulon Yes. zip and unzip instructions are only for 32bit architectures according to the documentation. |
I cannot rebase because I have no right on your branch, can you ? |
Yes ill do it.
…On Tue, 17 Dec 2024, 9:20 pm JeanRochCoulon, ***@***.***> wrote:
I cannot rebase because I have no right on your branch, can you ?
—
Reply to this email directly, view it on GitHub
<#2653 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXNX42OWES2CPVEEJURGTAL2GBFNDAVCNFSM6AAAAABTCKXVQGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBYHEZDOOJXGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
9166ab7
to
7f8a34e
Compare
@JeanRochCoulon I have rebased the branch. |
❌ failed run, report available here. |
LGTM. I am ready to merge. |
7f8a34e
to
642f139
Compare
❌ failed run, report available here. |
642f139
to
32b9818
Compare
Introduction
This PR adds support for Zbkb extension in the CVA6 core. It also adds the documentation for this extension. These changes have been tested with self-written single instruction tests and with the riscv-arch-tests. This PR will be followed by other PRs that will add complete support for the Zkn - NIST Algorithm Suite extension.
Implementation
Zbkb Extension:
Added support for the Zbkb instruction set. It essentially expands the Zbb extension with additional instructions useful in cryptography. These instructions are pack, packh, packw, brev8, unzip and zip.
Modifications
Documentation and Reference
The official RISC-V Cryptography Extensions Volume I was followed to ensure alignment with ratification. The relevant documentation for the Zbkb instruction was also added.
Verification
Assembly Tests:
The instructions were tested and verified with the K module of both 32 bit and 64 bit versions of the riscv-arch-tests to ensure proper functionality. These tests check for ISA compliance, edge cases and use assertions to ensure expected behavior. The tests include: